Unable to build with lxd when using lxd with lvm pool.
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
System version: ubuntu 18.04
snapcraft: 3.8(3440) and 3.9.2(3720)
When tring to build snaps with --use-lxd, the following error is shown:
/snap/snapcraft/3440/lib/python3.5/site-packages/pylxd/models/_model.py:116: UserWarning: Attempted to set unknown attribute "type" on instance of "Container"
key, self.__class__.__name__
Stopped
An error occurred with the instance when trying to start with 'LXD': Common start logic: No such file or directory: "/var/snap/lxd/common/lxd/storage-pools/pool1/containers/snapcraft-project/rootfs".
Ensure that 'LXD' is setup correctly and try again.
It seems that the directory is hardcoded toward the /var directory which is the default one I believe.
My lxd is setup with a lvm pool manually.
Evaluation history
No evaluation history available.